﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MLSMooc.VO.Request.Login
{
    public class ChengePwdReq
    {
        [Required(ErrorMessage = "新密码不能为空")]
        [RegularExpression(@"^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,25}$", ErrorMessage = "密码应是8-25位的字母和数字")]
        public string New_Pwd { get; set; }

        [Required(ErrorMessage = "确认密码不能为空")]
        [RegularExpression(@"^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,25}$", ErrorMessage = "密码应是8-25位的字母和数字")]
        public string Repeat_Pwd { get; set; }
    }
}
